import json

import requests

def get_access_token(url):
    # 获取access_token
    res = requests.get(url=url, verify=False)
    token = json.loads(res.text)['access_token']
    return token
